import http from "@/api";
import { IdList, ResultData } from "../interface";
/**
 * 获取用户接口权限
 */
export const getRolePermission = (roleId: string) => {
  return http.get<ResultData>("/admin/rolePermission/getRolePermission", { roleId: roleId });
};

export const saveRolePermission = (idList: IdList) => {
  return http.post<ResultData>("/admin/rolePermission/saveRolePermission", idList);
};
